<!DOCTYPE html>
<html lang="en">
<include file="Public:header" />
<include file="Public:page_css" />
<body>

<!--Header-part-->
<div id="header">
  <h1><a href="#">{:C('SITENAME')}</a></h1>
</div>
<!--close-Header-part--> 
<include file="Public:top" />
<include file="Public:nav" />

<!--main-container-part-->
<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="{:U('Index/index')}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a><a href="#" class="tip-bottom"> 信息管理</a> <a href="{:U('Notice/index')}" class="tip-bottom">系统消息</a></div>
    <h1>系统消息</h1>
  </div>
  <div class="container-fluid">
    <hr>
    <div class="row-fluid">
      <div class="span12">
      	<a href="{:U('Notice/add')}" class="btn btn-success">添加系统消息</a>
        <div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
            <h5>系统消息</h5>
          </div>
          <div class="widget-content nopadding">
            <table class="table table-bordered table-striped">
              <thead>
                <tr>
                  <th style="width: 5%">编号</th>
                  <th>添加日期</th>
                  <th style="width: 25%">标题</th>
                  <th>内容</th>
                  <th style="width: 30%">操作</th>
                </tr>
              </thead>
              <tbody>
                <volist name="list" id="vo" key="val">
                    <tr class="odd gradeX">
                        <td style="text-align: center">{$val}</td>
                        <td style="text-align: center">{$vo.add_time|date='Y-m-d',###}</td>
                        <td style="text-align: center">{$vo.title}</td>
                        <td style="text-align: center">{$vo.info|htmlspecialchars_decode|stripslashes}</td>
                        <td style="text-align: center">
                             <a href="{:U('edit',array('id'=>$vo['id']))}" class="btn btn-primary btn-mini">编辑</a>&nbsp;&nbsp;
                             <a href="javascript:drop_confirm('您确定要删除吗?','{:U('delnotice',array('id'=>$vo['id']))}');" class="btn btn-danger btn-mini">删除</a>
                        </td>
                    </tr>
                </volist>
                <tr>
                    <td colspan="13" style=" background-color:#eee; ">
                        <div class="pages" style=" text-align: right;" >
                            {$page}
                        </div>
                    </td>  
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!--end-main-container-part-->
<include file="Public:footer" />


<script src="__ROOT__/Statics/Matrixadmin/js/jquery.min.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/jquery.ui.custom.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/bootstrap.min.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/matrix.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/matrix.form_validation.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/jquery.uniform.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/select2.min.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/jquery.dataTables.min.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/common.js"></script> 
<script type="text/javascript">
  // This function is called from the pop-up menus to transfer to
  // a different page. Ignore if the value returned is a null string:
  function goPage (newURL) {
      // if url is empty, skip the menu dividers and reset the menu selection to default
      if (newURL != "") {
      
          // if url is "-", it is this page -- reset the menu:
          if (newURL == "-" ) {
              resetMenu();            
          } 
          // else, send page to designated URL            
          else {  
            document.location.href = newURL;
          }
      }
  }

// resets the menu selection upon entry to this page:
function resetMenu() {
   document.gomenu.selector.selectedIndex =2;
}
</script>
</body>
</html>
